#ifndef NO_EDIT_DELEGATE_H
#define NO_EDIT_DELEGATE_H

#include <QtGui/QStyledItemDelegate>

namespace gui
{

class NoEditDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
    NoEditDelegate(QWidget* parent = 0) : QStyledItemDelegate(parent) {}
    QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option,
        const QModelIndex& index) const { return 0; }
};

} // namespace gui

#endif
